<template>
  <el-menu default-active="1" class="menu-header" :collapse="collapse">
    <div class="header">
      <!-- <div @click="shrink">
        <el-icon v-if="collapse == true">
          <Expand />
        </el-icon>
        <el-icon v-else>
          <Fold></Fold>
        </el-icon>
      </div> -->
      <div class="title">
        <span :class="{ word2: collapse, word: !collapse }">即爱计划</span>
      </div>
    </div>
  </el-menu>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
let props = defineProps<{
  collapse: Boolean
}>()
let emits = defineEmits(['update:collapse'])
const shrink = () => {
  emits('update:collapse', !props.collapse)
}
</script>

<style lang="scss" scoped>
.menu-header {
  background-color: white;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  top: 0;
  left: 0;
}

.header {
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.title {
  width: 100%;
  position: relative;
}

.word {
  margin-left: 50%;
  font-size: 40px;
  color: rgb(26, 115, 232);
}

.word2 {
  font-size: 40px;
  color: rgb(26, 115, 232);
  position: absolute;
  top: 30vh;
  left: -20px;
}
</style>
